//
//  MobileSailAppDelegate.m
//  MobileSail
//
//  Created by Roy Brown on 8/8/09.
//  Copyright __MyCompanyName__ 2009. All rights reserved.
//

#import "MobileSailAppDelegate.h"
#import "RootViewController.h"


@implementation MobileSailAppDelegate

@synthesize window;
@synthesize navigationController;
@synthesize items;


- (void)applicationDidFinishLaunching:(UIApplication *)application {
	
	MainMenuItems *order = [[MainMenuItems alloc] initWithName:@"Orders" description:@"Red Delicious are my favorite"];
	MainMenuItems *pickup = [[MainMenuItems alloc] initWithName:@"Pickup Queue" description:@"yeah yeah orange"];
	MainMenuItems *menu = [[MainMenuItems alloc] initWithName:@"Menu" description:@"Water mo melon"];
	MainMenuItems *schedule = [[MainMenuItems alloc] initWithName:@"Schedule" description:@"Water mo melon"];
	MainMenuItems *feedback = [[MainMenuItems alloc] initWithName:@"Feedback" description:@"Water mo melon"];
	MainMenuItems *reportBugs = [[MainMenuItems alloc] initWithName:@"Report Bugs" description:@"Water mo melon"];
	
	self.items = [[NSMutableArray alloc] initWithObjects:order,pickup,menu,schedule,feedback,reportBugs,nil];
	
	// Configure and show the window
	[window addSubview:[navigationController view]];
	[window makeKeyAndVisible];
}


- (void)applicationWillTerminate:(UIApplication *)application {
	// Save data if appropriate
}


- (void)dealloc {
	[navigationController release];
	[window release];
	[super dealloc];
}

@end
